import React from "react"
class Son extends React.Component {
    render() {
        return (
            <div>
                {this.props.children[0]}
                {this.props.children[1]}
                {this.props.children[2]}
                {this.props.children[3]}
            </div>
        )
    }
}
export class Test11 extends React.Component {
    state = {
        msg: 'Jsx'
    } 
    render() {
        return (
            <div>
                <h1>11.children属性</h1>
                <Son>
                    普通文本
                    <div>普通标签元素</div> 
                     {console.log(2)}
                    <div>{this.state.msg}</div>
                </Son>
            </div> 
        )
    }
}